<?php
$password = "Fpopopopopuu";
if (preg_match("/^.*(?=.{8,})(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z]).*$/", $password)) {
echo "Your passwords is strong.";
} else if (preg_match("/^.*(?=.{8,})(?=.*[a-z A-Z]).*$/", $password)) {
echo "Your passwords is medium.";
} else if (preg_match("/^.*(?=.*[0-9 A-Z a-z]).*$/", $password)) {
echo "Your passwords is low.";
} else {
  echo "Poor :(";
}
